FROM FROM eclipse-temurin:17-jre-alpine

WORKDIR /app

# 设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

# 复制各模块jar包
COPY ./music-common/target/music-common-0.0.1-SNAPSHOT.jar /app/lib/
COPY ./music-pojo/target/music-pojo-0.0.1-SNAPSHOT.jar /app/lib/
COPY ./music-server/target/music-server-0.0.1-SNAPSHOT.jar /app/app.jar

# 声明端口
EXPOSE 8080

# 启动命令
ENTRYPOINT ["java", "-jar", "/app/app.jar"] 